﻿#pragma once
#include "StringEditEntry.h"
#include <QLocale>

class LocaleEditEntry : public StringEditEntry {
    Q_OBJECT
public:
    explicit LocaleEditEntry(QWidget *parent = nullptr);
    ~LocaleEditEntry();
    void setValue(const QLocale &locale);
    QLocale value() const;

signals:
    void valueChanged(const QLocale &locale);

private:
    void initUi();
    void retranslateLanguage();

private:
    struct LocaleEditEntryPrivate;
    QScopedPointer<LocaleEditEntryPrivate> p;
};
